/*    */ package com.feeyin.radar.sys.dao.impl;
/*    */ 
/*    */ import com.feeyin.radar.crm.model.UserViewFunPosition;
/*    */ import com.feeyin.radar.sys.dao.RoleFunctionDAO;
/*    */ import com.feeyin.radar.sys.model.RoleFunction;
/*    */ import com.feeyin.radar.sys.model.ViewRoleFunction;
/*    */ import java.util.List;
/*    */ import org.springframework.orm.ibatis.SqlMapClientTemplate;
/*    */ import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
/*    */ 
/*    */ public class RoleFunctionDAOImpl extends SqlMapClientDaoSupport
/*    */   implements RoleFunctionDAO
/*    */ {
/*    */   public List getViewRoleFunctionsByUserId(Integer userid)
/*    */   {
/* 21 */     return getSqlMapClientTemplate().queryForList("getViewRoleFunctionsByUserId", userid);
/*    */   }
/*    */ 
/*    */   public List getLeftUserViewFunPositionByUserId(Integer userId) {
/* 25 */     return getSqlMapClientTemplate().queryForList("getLeftUserViewFuncPositionByUserId", userId);
/*    */   }
/*    */ 
/*    */   public List getRightUserViewFunPositionByUserId(Integer userId) {
/* 29 */     return getSqlMapClientTemplate().queryForList("getRightUserViewFuncPositionByUserId", userId);
/*    */   }
/*    */ 
/*    */   public boolean deleteUserViewFunPositionByUserId(Integer userId) {
/* 33 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().delete("deleteUserViewFuncPosition", userId));
/* 34 */     return result != null;
/*    */   }
/*    */ 
/*    */   public List getUserViewFunPositionByUserId(Integer userId)
/*    */   {
/* 39 */     return getSqlMapClientTemplate().queryForList("getUserViewFuncPositionByUserId", userId);
/*    */   }
/*    */ 
/*    */   public boolean insertUserViewFunPosition(UserViewFunPosition userViewFunPosition)
/*    */   {
/* 44 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertUserViewFuncPosition", userViewFunPosition);
/* 45 */     return result != null;
/*    */   }
/*    */ 
/*    */   public List getViewRoleFunctionsByRoleId(Integer roleId)
/*    */   {
/* 50 */     return getSqlMapClientTemplate().queryForList("getViewRoleFunctionsByRoleId", roleId);
/*    */   }
/*    */ 
/*    */   public boolean deleteViewRoleFunction(Integer roleId) {
/* 54 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().delete("deleteViewRoleFunction", roleId));
/* 55 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean insertViewRoleFunction(ViewRoleFunction viewRoleFunction)
/*    */   {
/* 60 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertViewRoleFunction", viewRoleFunction);
/* 61 */     return result != null;
/*    */   }
/*    */ 
/*    */   public List getRoleFunctions()
/*    */   {
/* 66 */     return getSqlMapClientTemplate().queryForList("getRoleFunctions");
/*    */   }
/*    */ 
/*    */   public List getRoleFunctionsByRoleId(Integer roleId) {
/* 70 */     return getSqlMapClientTemplate().queryForList("getRoleFunctionsByRoleId", roleId);
/*    */   }
/*    */ 
/*    */   public boolean insertRoleFunction(RoleFunction roleFunction)
/*    */   {
/* 78 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertRoleFunction", roleFunction);
/* 79 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean deleteRoleFunction(Integer roleId)
/*    */   {
/* 84 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().delete("deleteRoleFunction", roleId));
/* 85 */     return result != null;
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.impl.RoleFunctionDAOImpl
 * JD-Core Version:    0.6.0
 */